package com.ssm.xm.model;

import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

@Component
public class ClassInfo implements Serializable {
    private Integer classId;

    private Integer syllabusId;

    private Integer thId;

    private String className;

    private Integer classNumber;

    private Date classStartTime;

    private Date classEndTime;

    private String classIsuesd;

    private String classState;

    private String classDesc;

    private static final long serialVersionUID = 1L;

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public Integer getSyllabusId() {
        return syllabusId;
    }

    public void setSyllabusId(Integer syllabusId) {
        this.syllabusId = syllabusId;
    }

    public Integer getThId() {
        return thId;
    }

    public void setThId(Integer thId) {
        this.thId = thId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className == null ? null : className.trim();
    }

    public Integer getClassNumber() {
        return classNumber;
    }

    public void setClassNumber(Integer classNumber) {
        this.classNumber = classNumber;
    }

    public Date getClassStartTime() {
        return classStartTime;
    }

    public void setClassStartTime(Date classStartTime) {
        this.classStartTime = classStartTime;
    }

    public Date getClassEndTime() {
        return classEndTime;
    }

    public void setClassEndTime(Date classEndTime) {
        this.classEndTime = classEndTime;
    }

    public String getClassIsuesd() {
        return classIsuesd;
    }

    public void setClassIsuesd(String classIsuesd) {
        this.classIsuesd = classIsuesd == null ? null : classIsuesd.trim();
    }

    public String getClassState() {
        return classState;
    }

    public void setClassState(String classState) {
        this.classState = classState == null ? null : classState.trim();
    }

    public String getClassDesc() {
        return classDesc;
    }

    public void setClassDesc(String classDesc) {
        this.classDesc = classDesc == null ? null : classDesc.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", classId=").append(classId);
        sb.append(", syllabusId=").append(syllabusId);
        sb.append(", thId=").append(thId);
        sb.append(", className=").append(className);
        sb.append(", classNumber=").append(classNumber);
        sb.append(", classStartTime=").append(classStartTime);
        sb.append(", classEndTime=").append(classEndTime);
        sb.append(", classIsuesd=").append(classIsuesd);
        sb.append(", classState=").append(classState);
        sb.append(", classDesc=").append(classDesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}